import { reactive } from 'vue'

export function usePagination() {
  return reactive({
    current: 1,
    pageSize: 10,
    total: 0,
    showQuickJumper: true,
    showSizeChanger: true,
    showTotal: (total: number, range: number[]) => `当前:${range[0]}-${range[1]} 共计:${total}`,
  })
}
